package top.system.dept.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.system.dept.pojo.ThingOrder;

import java.util.List;

/**
 * @ClassName: ThingOrderMapper
 * @Author: Amosen
 * @Since: 2021/5/21
 */

@Repository
public interface ThingOrderMapper {

    public List<ThingOrder> getThingOrdersByApplyUser(Integer userId);

    public ThingOrder getOrderByOrderId(String orderId);

    public List<ThingOrder> getOrdersByDept(Integer deptId);

    public List<ThingOrder> getAllThingOrder();

    public List<ThingOrder> getOrderByStatus(String status);

    public int deleteOrder(String orderId);

    public int addOrder(ThingOrder order, List<Integer> itemIds);

    public int updateOrderStatus(ThingOrder order);

}
